import Vue from './instance/index.js'
import initGlobalAPI from './initGlobalAPI/initGlobalAPI.js'
import isServerRendering from './isServerRendering.js'
import FunctionalRenderContext from './FunctionalRenderContext.js'
initGlobalAPI(Vue)

Object.defineProperty(Vue.prototype, '$isServer', {
    get: isServerRendering
})

Object.defineProperty(Vue.prototype, '$ssrContext', {
    get () {
        /* istanbul ignore next */
        return this.$vnode && this.$vnode.ssrContext
    }
})

Object.defineProperty(Vue, 'FunctionalRenderContext', {
    value: FunctionalRenderContext
})

Vue.version = '__VERSION__'

export default Vue